import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 200,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    viewBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '关键词',
        prop: 'keyword',
        overHidden: true,
        hide: true,
        search: true,

      },
      {
        label: '船舶名称',
        prop: 'p1',
        overHidden: true,

      },
      {
        label: '总吨',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        },
        overHidden: true,
      },
      {
        label: '总载重量',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
      {
        label: '净载重量',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: '载客量',
        prop: 'p5',
        overHidden: true,

      },
      {
        label: '集装箱位',
        prop: 'p6',
        overHidden: true,

      }, {
        label: '主机功率',
        prop: 'p7',
        overHidden: true,

      }, {
        label: '副机功率',
        prop: 'p8',
        overHidden: true,

      },
      {
        label: '等效设施情况描述',
        prop: 'p9',
        overHidden: true,

      },
    ]
  }
}
